package com.bot.backend.controller.user.snake;

import com.bot.backend.pojo.Snake;
import com.bot.backend.service.user.snake.GetSnakeListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GetSnakeListController {
    @Autowired
    private GetSnakeListService snakeListService;

    @GetMapping("/user/snake/getList")
    public List<Snake> getList() {
        return snakeListService.getSnakeList();
    }
}
